@extends('layouts.information')

@section('title','角色创建')

@section('content')
    <div class="panel-body">
        {!! Form::model($role,['route'=>'role.store']) !!}
        <div class="form-group">
            {!! Form::label('name',trans('validation.attributes.name')) !!}
            {!! Form::text('name',null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('display_name',trans('validation.attributes.display_name')) !!}
            {!! Form::text('display_name',null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('description',trans('validation.attributes.description')) !!}
            {!! Form::text('description',null,['class'=>'form-control']) !!}
        </div>
        {!! Form::submit('提交') !!}
        {!! Form::close() !!}
    </div>
@endsection

@section('scripts')
    @if ($errors->any())
        <script>
            alert('{{ current($errors->all()) }}');
        </script>
    @endif
@endsection
